﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.WrapMode
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

#nullable disable
namespace UnityEngine
{
  /// <summary>
  ///   <para>Determines how time is treated outside of the keyframed range of an AnimationClip or AnimationCurve.</para>
  /// </summary>
  public enum WrapMode
  {
    /// <summary>
    ///   <para>Reads the default repeat mode set higher up.</para>
    /// </summary>
    Default = 0,
    Clamp = 1,
    /// <summary>
    ///   <para>When time reaches the end of the animation clip, the clip will automatically stop playing and time will be reset to beginning of the clip.</para>
    /// </summary>
    Once = 1,
    /// <summary>
    ///   <para>When time reaches the end of the animation clip, time will continue at the beginning.</para>
    /// </summary>
    Loop = 2,
    /// <summary>
    ///   <para>When time reaches the end of the animation clip, time will ping pong back between beginning and end.</para>
    /// </summary>
    PingPong = 4,
    /// <summary>
    ///   <para>Plays back the animation. When it reaches the end, it will keep playing the last frame and never stop playing.</para>
    /// </summary>
    ClampForever = 8,
  }
}
